package com.mbc.hr.entities;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_LeaveScheme")
@NamedQueries({
	@NamedQuery(name="LeaveScheme.findAll",query="SELECT ls FROM LeaveScheme ls"),
	@NamedQuery(name="Leavescheme.findByCode",query="SELECT ls FROM LeaveScheme ls WHERE ls.schemeCode = :schemeCode")
})
public class LeaveScheme implements Serializable {

	@Id
	private long leaveSchemeID;
	private String schemeCode;
	private String description;

	@Transient
	private List<LeaveSchemeDetail> details;
	
	public long getLeaveSchemeID() {
		return leaveSchemeID;
	}

	public void setLeaveSchemeID(long leaveSchemeID) {
		this.leaveSchemeID = leaveSchemeID;
	}
	

	public String getDescription(){
		return description;
	}

	public void setDescription(String description){
		this.description = description;
	}

	public List<LeaveSchemeDetail> getDetails() {
		return details;
	}

	public void setDetails(List<LeaveSchemeDetail> details) {
		this.details = details;
	}

	public String getSchemeCode() {
		return schemeCode;
	}

	public void setSchemeCode(String schemeCode) {
		this.schemeCode = schemeCode;
	}


}
